<?php #//v.3.3.0

#///////////////////////////////////////////////////////
#//  COPYRIGHT 2007 Phpauction.net ALL RIGHTS RESERVED//
#///////////////////////////////////////////////////////

require('./includes/config.inc.php');

/* get active bids for this user */

             $id = $_GET['id']; 
             
// GET BID HISTORY

$query = "select * from PHPAUCTIONXL_bid_packs where active = 1 ORDER BY bids";
$result_numbids = mysql_query ($query);
$num_auction2 = mysql_num_rows($result_numbids);

 $ii = 0;
                      
          $bid_pack_html = "";

   if(!$_SESSION["PHPAUCTION_LOGGED_IN"]) {
   
   
   
   
   
         $bid_pack_html = "<BR><BR><h1><CENTER><A HREF=\"user_login.php\">$BUY_BIDS_PAGE_LOGIN</A><BR><BR>";
   
   
   
   
   
   
   }

   if($_SESSION["PHPAUCTION_LOGGED_IN"]) {

while($ii < $num_auction2) {

       $ends_h = "";

      if($rowclass == 0)
 
 { 
 $rowbackground = "row0";

 }
              
      if($rowclass == 1)
  { 
 $rowbackground = "row1";

$rowclass = -1;
 }        


$rowclass++;


     $bid_pack_id 	= mysql_result($result_numbids,$ii,"id");
    $bid_pack_title 	= mysql_result($result_numbids,$ii,"title");
     $bid_pack_price 	= mysql_result($result_numbids,$ii,"price"); 
            $bid_pack_bids 	= mysql_result($result_numbids,$ii,"bids");
       $bid_pack_note1 	= mysql_result($result_numbids,$ii,"note1");       
          $bid_pack_note2 	= mysql_result($result_numbids,$ii,"note2"); 

    
  

   $bid_pack_html .= "<DIV class=BID_PACK_BOX ><span class=BID_PACK_TITLE_TEXT >".$bid_pack_title."</span>";
   $bid_pack_html .= "<span class=BID_PACK_NOTE1_TEXT >".$bid_pack_note1."</span><br> ";
   $bid_pack_html .= "<A HREF=buybids_paypal_create.php?id=".$id."&bpid=".$bid_pack_id.">";
   $bid_pack_html .= "<span class=BID_PACK_BID_TEXT >".$bid_pack_bids." ".$BUY_BIDS_BIDS."</span><BR>";
   $bid_pack_html .= "<span class=BID_PACK_PRICE_TEXT >".$currency_symbol.$bid_pack_price." ".$currency."</a></span><BR>";
   $bid_pack_html .= "<span class=BID_PACK_NOTE2_TEXT >".$bid_pack_note2."</span> </DIV>";
                     
       
      

     
$ii++;

}

          }
          
          
          
          
$bid_pack_html_print = $bid_pack_html;



include "header.php";
include phpa_include("template_buybids_php.html");
include "footer.php";

?>